Array.prototype.repeat = function (n: number = 3): Array<any> {
    let newArray = Array.from({ length: n }, () => this).flat()
    return newArray
}
export default {
    name: 'array',
    list: [
        { name: 'repeat', desc: '将数组重复n次,默认为3' }
    ]
}